import { defHttp } from '/@/utils/http/axios';
enum Api {
  list = '/inventorymanage/inventoryManage/list',
  save = '/inventorymanage/inventoryManage/add',
  edit = '/inventorymanage/inventoryManage/edit',
}
/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });
/**
 * 保存或者更新
 * @param params
 */
export const saveOrUpdate = (params, isUpdate) => {
  const url = isUpdate ? Api.edit : Api.save;
  return defHttp.post({ url: url, params });
};
